package 进阶.IO.属性集;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;
import java.util.Set;

public class demo03 {
    public static void main(String[] args) throws IOException {
        Properties p = new Properties();

        p.load(new FileReader("d:/a.txt"));


        Set<String> strings = p.stringPropertyNames();
        for(String key : strings){
            String value = p.getProperty(key);
            System.out.println(value);
        }
    }
}
